package com.jxdinfo.hussar.example.common.schedulingtask.dao;

import com.jxdinfo.hussar.example.common.schedulingtask.model.CBOItemMasterInventoryInfo;
import com.jxdinfo.hussar.example.common.schedulingtask.model.MesBaseItem;
import com.jxdinfo.hussar.support.datasource.annotations.HussarDs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 乔镔
 * @since 2024-03-13
 */
@Mapper
@Repository("com.jxdinfo.hussar.example.schedulepackage.dao.CBOItemMasterInventoryInfoMapper")
@Deprecated
public interface CBOItemMasterInventoryInfoMapper {

    /**
     * @Author QiaoBin
     * @Date 2024/3/20 11:40
     * @Description  查询mes_base_item表中最大的同步时间
     */
    LocalDateTime selectMaxScheduleDate();

    /**
     * @Author QiaoBin
     * @Date 2024/3/20 11:30
     * @Description  查询创建时间大于上一次同步时间的数据或者所有所有的数据，查询出来插入到mes_base_item表中
     */
    @HussarDs("TEST02")
    List<CBOItemMasterInventoryInfo> selectMoreSchedule(String scheduleDateString);

    @HussarDs("TEST02")
    List<CBOItemMasterInventoryInfo> selectUpdateMoreSchedule(String scheduleDateString);

    List<MesBaseItem> selectUpdateMoreScheduleOrder(List<Long> masterIdList);
}
